package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thyme.system.entity.WytDriverInfo;
import com.thyme.system.entity.WytShipment;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface WytDriverDao extends BaseMapper<WytDriverInfo> {
    /**
     * 查询所有用户
     *
     * @param page 分页数据
     * @return 所有用户集合
     */
    @Select("SELECT * FROM wyt_driver_info")
    IPage<WytDriverInfo> getAll(Page page);

    @Select("SELECT * FROM wyt_driver_info where id=#{id}")
    WytDriverInfo getById(@Param("id")String id);
}
